package com.dd.mapper;

import com.dd.entity.PurchaseOrders;
import com.dd.entity.PurchaseOrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 采购订单表 记录采购订单信息 Mapper 接口
 * </p>
 *
 * @author dhd
 * @since 2024-10-21
 */
@Mapper
public interface PurchaseOrdersMapper {

    // 新增采购订单
    void insert(@Param("purchaseOrders") PurchaseOrders purchaseOrders);

    //查询采购订单
    List<PurchaseOrdersVO> selectList();

    //查询采购订单详情
    List<PurchaseOrdersVO> queryPurchaseOrders(String orderId);


    int updateStatus(@Param("orderId") String orderId,@Param("supplierId") int supplierId,@Param("status") int status);

    int updateStatusByOrderId(@Param("orderId") String orderId,@Param("status") int status);

    int updateStatusByOrderIdFather(@Param("orderId") String supplierId,@Param("status") int status);


}
